/*
 * @Author: malgee
 * @Date: 2025-04-27 14:03:01
 * @LastEditors: maling
 * @LastEditTime: 2025-04-27 14:41:26
 * @FilePath: /vue3-ts-cms/src/base-ui/form/types/index.ts
 * @Description: 
 * 
 */
type IFormType = 'input' | 'password' | 'select' | 'detepicker'

export interface IFormItem {
  // 字段名
  field: string
  type: IFormType
  label: string
  rules?: any[]
  placeholder?: string
  // 针对select和radio
  options?: any[]
  // 其他配置
  otherOptions?: any
  // 是否需要隐藏
  isHidden?: boolean
}

export interface IForm {
  formItems: IFormItem[]
  labelWidth?: string
  colLayout?: any
  itemStyle?: any
}
